<%@page import="com.cositas.dulces.lp.FacebookAppData"%>
<%@ include file="include/nocache.jspf" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/public.css"/>
<script type='text/javascript' src='script/jquery-1.7.min.js'></script>

</head>
<body>
<script>
  var oauth_url = 'https://www.facebook.com/dialog/oauth/';
  <% if (FacebookAppData.isDev()) { %>
	  oauth_url += '?client_id=<%=FacebookAppData.getAppId()%>';
	  oauth_url += '&redirect_uri=' + encodeURIComponent('https://www.facebook.com/pages/Demo/128355393937835?sk=app_<%=FacebookAppData.getAppId()%>');
	  oauth_url += '&scope='
	<% } else { %>
		oauth_url += '?client_id=<%=FacebookAppData.getAppId()%>';
	  oauth_url += '&redirect_uri=' + encodeURIComponent('https://www.facebook.com/pages/cositasdulces.face/198723906849126?sk=app_<%=FacebookAppData.getAppId()%>');
	  oauth_url += '&scope='
	<% } %>
  window.top.location = oauth_url;
</script>
</body>
</html>